Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't write RPM standard output as error #1211

Merged
merged 2 commits into from
Mar 29, 2019
Merged

Conversation

Falmarri
Copy link
Contributor

Currently stdout for building an RPM gets output at error level.

[error] + umask 022
[error] + cd /home/david/test/target/rpm/BUILD
[error] + /bin/rm -rf /home/david/test/target/rpm/buildroot
[error] + exit 0

@kardapoltsev
Copy link
Member

Hi! Changes look good to me. Could you fix scalafmt errors please? (check travis build)

@Falmarri
Copy link
Contributor Author

Sure. I did this in the github UI 😊

Currently stdout for building an RPM gets output at error level.

```
[error] + umask 022
[error] + cd /home/david/test/target/rpm/BUILD
[error] + /bin/rm -rf /home/david/test/target/rpm/buildroot
[error] + exit 0
```
@muuki88
Copy link
Contributor

muuki88 commented Mar 29, 2019

@Falmarri thanks for fixing this! 😍 I lived under the impression that log would already do this an rpm simply emits to stderr

@muuki88 muuki88 merged commit 68724f2 into sbt:master Mar 29, 2019
@anilkumarmyla
Copy link
Contributor

does this work? Just tried this on linux (rpm-build-4.11.3-35.el7.x86_64) & mac (rpm 4.14.2.1), but the [error] log is still present

@Falmarri
Copy link
Contributor Author

Hmm. it's possible that I incorrectly identified the problem and that rpm outputting to stderr is actually the root cause. I'll inspect the rpm command more

@Falmarri Falmarri deleted the patch-1 branch March 30, 2019 00:41
@Falmarri
Copy link
Contributor Author

OK you guys are right. It does write the output to stderr regardless. How about this? #1212

@muuki88 muuki88 mentioned this pull request Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants